/* 
 * File:   Output.h
 * Author: max
 *
 * Created on October 12, 2012, 12:29 AM
 */

#ifndef OUTPUT_H
#define	OUTPUT_H

#include <ostream>
using namespace std;

#define INIT_OUTPUT_FAIL 2

namespace TP {
    
    class Output {
    
    public:
    
        Output();
        
        Output(int argc, char *argv[]) throw (int);
        
        virtual ~Output();
        
        void Inicializar ();
        
        void Liberar ();
        
        ostream& Stream();
    
    private:
        string fileName;
        ostream* stream;
    };
}
#endif	/* OUTPUT_H */

